import { combineReducers } from 'redux-immutable'
import { reducer as headerReducer } from '../common/header/store'
import  { reducer as homeReducer }  from '../pages/home/store'
import  { reducer as detailReducer }  from '../pages/detail/store'
import  { reducer as loginReducer }  from '../pages/login/store'

//将reducer作为headerReducer引入
//combineReducers将小的reducer整合
const reducer = combineReducers({
    header:headerReducer,
    home:homeReducer,
    detail:detailReducer,
    login:loginReducer
})

export default reducer;